﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="Marta.buchalska.wesele.Admin.Offer.Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="adminBody" runat="server">
    <asp:UpdatePanel runat="server" ChildrenAsTriggers="true">
        <ContentTemplate>
            <asp:LinkButton ID="updateBtn2" ClientIDMode="Static" ToolTip="Zapisz zmiany" runat="server"
                OnClick="updateBtn_Click">Zapisz zmiany</asp:LinkButton>
            <cc1:Editor NoUnicode="true" runat="server" ID='offerContent' Height="500" DocumentCssPath="~/Styles/style.css"
                DesignPanelCssPath="~/Styles/style.css" />
            <asp:LinkButton ID="updateBtn" ToolTip="Zapisz zmiany" ClientIDMode="Static" runat="server"
                OnClick="updateBtn_Click">Zapisz zmiany</asp:LinkButton>
            <div id="wait" style="width: 240px; display: none">
                <div style="margin-top: 30px;">
                    <img alt="" src="http://l.yimg.com/a/i/us/per/gr/gp/rel_interstitial_loading.gif" /></div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script type="text/javascript">
        function pageLoad() {
            Sys.Net.WebRequestManager.add_invokingRequest(onInvoke);
            Sys.Net.WebRequestManager.add_completedRequest(onComplete);
            $('#updateBtn').button();
            $('#updateBtn2').button();
        }
        function onInvoke() {
            $("#wait").dialog({ title: 'Zapisywanie zmian, proszę czekać...', height: 100, resizable: false, modal: true, show: 'drop' });
        }
        function onComplete() {
            $('#wait').dialog('close');
        }
    </script>
</asp:Content>
